Skip to content

fix issue #333 - Orchestration creation fails for UTF-8 input below 8,000 characters but above 8,000 bytes - #334

Merged
sophiatev merged 2 commits into
microsoft:mainfrom
usemam:fix-issue-333
Nov 9, 2026
Merged

sophiatev merged 2 commits into
microsoft:mainfrom
usemam:fix-issue-333

Conversation

@usemam

Copy link
Copy Markdown
Contributor

Fixes #333

Text parameters without an explicit size are sized by character count in SqlClient (dotnet/SqlClient#2035). A UTF-8 value of 8,000 characters or fewer but over 8,000 bytes is sent as varchar(n) and rejected by the server.

This sets size: -1 (max) on @InputText, @CustomStatusPayload, @DedupeStatuses and both @Reason parameters (terminate and rewind). All of them are already varchar(MAX) in the stored procedures.

Adds regression tests for input, custom status, terminate reason and rewind reason.

@usemam

Copy link
Copy Markdown
Contributor Author

andystaples sophiatev could you please take a look at this one? Thank you.

@sophiatev
sophiatev merged commit 2bad1a5 into microsoft:main Nov 9, 2026
2 checks passed
Usein Mambediiev (usemam) added a commit to usemam/durabletask-mssql that referenced this pull request Nov 10, 2026
…t below 8,000 characters but above 8,000 bytes (microsoft#334)

* fix issue microsoft#333

* address review comment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Orchestration creation fails for UTF-8 input below 8,000 characters but above 8,000 bytes

2 participants